//
//  FNNewsViewController.m
//  FourNews
//
//  Created by admin on 16/3/28.
//  Copyright © 2016年 天涯海北. All rights reserved.
//

#import "FNNewsViewController.h"
#import "FNNewsListController.h"

@interface FNNewsViewController ()

@end

@implementation FNNewsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setAllChildController];
}

- (void)setAllChildController
{
    FNNewsListController *headVC = [[FNNewsListController alloc] init];
    headVC.title = @"头条";
    [self addChildViewController:headVC];
    
    FNNewsListController *NBAVC = [[FNNewsListController alloc] init];
    NBAVC.title = @"NBA";
    [self addChildViewController:NBAVC];

    FNNewsListController *phoneVC = [[FNNewsListController alloc] init];
    phoneVC.title = @"手机";
    [self addChildViewController:phoneVC];
    
    FNNewsListController *moveVC = [[FNNewsListController alloc] init];
    moveVC.title = @"移动互联";
    [self addChildViewController:moveVC];
    
    FNNewsListController *recVC = [[FNNewsListController alloc] init];
    recVC.title = @"娱乐";
    [self addChildViewController:recVC];
    
    FNNewsListController *fashionVC = [[FNNewsListController alloc] init];
    fashionVC.title = @"时尚";
    [self addChildViewController:fashionVC];
    
    FNNewsListController *movieVC = [[FNNewsListController alloc] init];
    movieVC.title = @"电影";
    [self addChildViewController:movieVC];
    
    FNNewsListController *scienceVC = [[FNNewsListController alloc] init];
    scienceVC.title = @"科技";
    [self addChildViewController:scienceVC];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
